home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12161 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.2 KB

  1. Path: ix.netcom.com!netnews
  2. From: jlilley@ix.netcom.com (John Lilley)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Is there any limit to the overloading of names and templates.  C++  overrated?
  5. Date: 18 Mar 1996 17:39:23 GMT
  6. Organization: Netcom
  7. Message-ID: <4ik74b$14k@reader2.ix.netcom.com>
  8. References: <4iiam6$h36@solaris.cc.vt.edu>
  9. NNTP-Posting-Host: den-co8-14.ix.netcom.com
  10. Mime-Version: 1.0
  11. Content-Type: Text/Plain; charset=US-ASCII
  12. X-NETCOM-Date: Mon Mar 18  9:39:23 AM PST 1996
  13. X-Newsreader: WinVN 0.99.7
  14.  
  15. In article <4iiam6$h36@solaris.cc.vt.edu>, ericpe@vt.edu says...
  16.  
  17. >Is it possiple to go beyond the capability of the overload technique in 
  18. >any compilier?   That is, at some point does the C++ language start to 
  19. >loose it's relibility if overload is used in too many layers of 
  20. >repetetion.?
  21.  
  22. At some point, the compiler could conceivable die of internal
  23. overload if your made zillions of the same function.  However,
  24. it is much more likely that the following will happen first:
  25.  
  26. 1) The overloading becaomes abiguous, which means that a given
  27. call to an overloaded function finds two or more to be equally
  28. suitable, in which case the compiler is obligated to flag
  29. the call as an error.
  30.  
  31. 2) You won't be able to figure out function is to be called yourself.
  32.  
  33. Check out any good C++ book for a discussion of overloading resolution.
  34.  
  35. >      What does the assembly "governing code" look like to this 
  36. >conveinient attribute, "overload" ?
  37.  
  38. The overloaded function is chosen at compile-time.  The produced
  39. code is exactly as if there were only one function to be called.
  40.  
  41. >   Is C++ over-rated?   Is there a suitable equilvalent that will get 
  42. >programs done with just a little bit more structure than the anarchist 
  43. >nature of C++?
  44.  
  45. Depends on your needs.  C++ is compatible with "C" and a huge body
  46. of tools and libraries.  The anarchy is largely of your own choosing;
  47. you don't need to tie your brain in knots about overloading if you
  48. don't use it (of course, you'll be exposed to libraries that do use it).
  49. That being said, C++ is harder than, say, Pascal/Delphi, which is still
  50. a practical tool.  Visual Basic is a lot easier, but IMHO makes it
  51. very difficult to write and maintain robust programs (to wit, I have
  52. yet to encounter a VB program that does not crash regularly).
  53.  
  54. john lilley
  55.  
  56.